package t.com.presenter;

import java.util.List;

import t.com.base.BaseNewsModel;
import t.com.bean.NewsBean;
import t.com.model.INewsModel;
import t.com.view.INewsView;

/**
 * @author：zcx
 * @date:on 2018/2/28 0028 16:23
 */

public class INewsPresenter extends AppPresenter<INewsView> {

    private BaseNewsModel newsModel = new INewsModel();

    /**
     * View和Model通过Presenter进行交互
     */
    public void showGiveDolls() {
        newsModel.loadData(new BaseNewsModel.loadOnListener() {
            @Override
            public void onComplete(List<NewsBean> beanList) {
                getView().showData(beanList);
            }
        });
    }

}
